package java8;

public class Code111 {
public static void main(String[] args) {
	double[] nums=new double[]{34.2,45.6,87.3,-98.2,123};
	double min=nums[0];
	for (int i = 1; i < nums.length; i++) {
		if(nums[i]<min){
			min=nums[i];
		}	
	}
	System.out.println("最小值为:"+min);
}
}
